<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="/common/include.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${applicationScope.sysConfig.applicationName}</title>
<script language="javascript" src="common/js/xjValidate.js"></script>
<link href="common/css/login.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="common/jquery/jquery.min.js"></script>
<script type=text/javascript>
	function checkform()
	{
		var objarr = new Array(
		["userList.userId","用户帐号","notEmpty",""],
		["userList.password","密码","notEmpty",""]
		);
	
		if(xj.CheckAll(objarr))
			document.getElementById("form1").submit();
	}
	function keys(evt,varobj){
		var isie = (document.all) ? true : false;
		var key;
		var srcobj;
		if (isie) {
			key = event.keyCode;
			srcobj = event.srcElement;
		} else {
			key = evt.which;
			srcobj = evt.target;
		}
		if (key==13){
			if($(varobj).attr("id")=="userId")
				$("#password").focus();
			else
				checkform();
		}
	}
	$(document).ready(function(){
		var yy;
		if($.browser.msie){ 
			yy = document.compatMode == "CSS1Compat"? document.documentElement.clientHeight : document.body.clientHeight; 
		}else{ 
			yy = self.innerHeight; 
		}
		$("#mid").height(yy+"px");
		$("#box").css("top",(yy-550)/2+"px");
		$("#userId").focus();
	});
</script>
</head>

<body>
  <form action="login.do" method="post" name="form1" id="form1">
<div id="wrapper"> 
	<div id="mid"> 
		<div id="box"> 
			<ul>
				<li><input name="userList.userId" type="text" class="input" id="userId" name="userList.userId" value="" onkeydown="keys(event,this)"/></li>
			    <li><input name="userList.password"  type="password" class="input" id="password" name="userList.password" onkeydown="keys(event,this)" value=""/></li>
			</ul>
			<img src="images/login/login_btn.jpg"  class="login_button" onclick="checkform()" width="77" height="28"/>
		    <c:if test="${param.timeOut eq true}">
			<div class="timeOutMsg">系统超时，请重新登录!</div>
		    </c:if>
		</div> 
	</div> 
</div>
</form>
</body>
</html>
